package 面向对象初级.方法.课堂练习.第五道题;

import java.util.Scanner;

public class UserInterface {
    public static void main(String[] args) {
        //进行用户的登陆
        User user = new User();
        user.userName="张三";
        user.passWord="123456";

        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入你的用户名");
        String inputName=scanner.next();
        System.out.println("请输入你的密码");
        String inputPwd=scanner.next();

        user.login(inputName,inputPwd);
    }
}
